package com.cs.peanut.player.api;

import android.os.Environment;

import com.cs.peanut.base.util.BaseApp;

import java.io.File;

/**
 * Created by zack on 2018/3/12.
 */

public interface Constants {
    public final class Storage {
        public static final File ROOT_PATH = new File(Environment.getExternalStorageDirectory(),"kystar/commander/client");
        public static final File VIDEO_PATH = new File(ROOT_PATH,"video");
        public static final File THUMB_CATCH = new File(BaseApp.getApp().getCacheDir(),"thumb");
        static {
            if (!THUMB_CATCH.exists()) {
                THUMB_CATCH.mkdirs();
            }
        }
    }
    interface ServerConfig {
        int PORT = 8080;
        String PROTOCOL = "http://";
        static String url(String ip) {
            return PROTOCOL + ip + ":" + PORT + "/";
        }
    }

}
